{% extends 'base.html' %}

{% block title %}
{{ g.user['username'] }}-Personal Center
{% endblock title %}

{% block hero %}{% endblock hero %}

{% block box %}
<div class="columns">
    <div class="column is-2">
        <div class="card is-shadowless" style="border-right:solid 1px #eee">
            <div class="card-content">
                {% block menus %}
                <aside class="menu">
                    <ul class="menu-list">
                        <li><a class="{% if 'category' in request.path %}is-active{% endif %}"
                           href="{{url_for('admin.category')}}">分类管理</a></li>
                    </ul>
                    <ul class="menu-list">
                        <li><a class="{% if 'user' in request.path %}is-active{% endif %}"
                            href="{{url_for('admin.user')}}">Admin User</a></li>
                    </ul>
                </aside>
                {% endblock menus %}
            </div>
        </div>
    </div>
    <div class="column">
        {% block member %}
            <div class="tile is-parent">
                <article class="tile is-child notification is-success is-light">
                    <div class="content">
                        <p class="title">{{users_num}}</p>
                        <p class="subtitle">用户数</p>
                        <div class="content">
                            <!-- Content -->
                        </div>
                    </div>
                </article>
            </div>
        </div>
        {% endblock member %}
    </div>
</div>
{% endblock box %}